package com.hczoop.utils.web;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class ConfigUtils {
	
	private static Properties prop;
	
	public final static String CONFIG_FILE = "attachment.properties";
	
	
	static{

		InputStream inputStream = ConfigUtils.class.getClassLoader().getResourceAsStream(CONFIG_FILE);
		
		prop = new Properties();   
		
		try {   
			prop.load(inputStream);   
		} catch (IOException e1) {   
			e1.printStackTrace();   
		}   

	}
	
	
	public static String getValue(String key) {
		
		String value = prop.getProperty(key);
		
		return value;
	}

}
